<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			window.onload=function(){
				showTime();
				window.setInterval("showTime()",1000);
			}
			function showTime(){
				document.getElementById("time").innerHTML=new Date().toLocaleString();
				
			}
		</script>
	</head>
	<body>
		<span id="time"></span>
	</body>
</html>
